package cn.itcast.extends_;

/**
 * @title: Pupil
 * @Author Zhou
 * @Date: 2022/1/21 13:52
 * @Version 1.0
 */
public class Pupil {
    public String name;
    public int age;
    private double score;

    public void setScore(double score) {
        this.score = score;
    }

    public double getScore() {
        return score;
    }

    public void testing() {
        System.out.println("小学生：" + name + " 正在考小学数学");
    }

    public void showInfo() {
        System.out.println("小学生名:" + name + ",年龄:" + age + ",成绩:" + score);
    }
}
